--require('world')

--[[

	View Functionality
	
--]]
--Initialize view
function viewInit()
	viewWidth = 960
	viewHeight = 640

	initialXOffset = (world:getMaxX()/2) - (viewWidth/2)
	initialYOffset = (world:getMaxY()/2) - (viewWidth/2)

	topLeft = {initialXOffset, initialYOffset}
	topRight = {(initialXOffset + viewWidth), initialYOffset}
	botLeft = {initialXOffset, (initialYOffset + viewHeight)}
	botRight = {(initialXOffset + viewWidth), (initialYOffset + viewHeight)}
	viewCenter = {(initialXOffset + (viewWidth/2)), (initialYOffset + (viewHeight/2))}
end

--Screen configure
function love.conf(t)
	viewInit()

    t.screen.width = viewWidth
    t.screen.height = viewHeight
    t.title = "NED TITLE"
end


--[[

	Gets and Sets
	
--]]
--Return top left view coordinates
function getTopLeft()
	return topLeft
end

--Return top right view coordinates
function getTopRight()
	return topRight
end

--Return bot left view coordinates
function getBotLeft()
	return botLeft
end

--Return bot right view coordinates
function getBotRight()
	return botRight
end

--Return view's center coordinates
function getViewCenter()
	return viewCenter
end

--Return view width
function getViewWidth()
	return viewWidth
end

--Return view height
function getViewHeight()
	return viewHeight
end

--Set top left view coordinates
function setTopLeft(tl)
	topLeft = tl
end

--Set top right view coordinates
function setTopRight(tr)
	topRight = tr
end

--Set bot left view coordinates
function setBotLeft(bl)
	botLeft = bl
end

--Set bot right view coordinates
function setBotRight(br)
	botRight = br
end

--Set view's center coordinates
function setviewCenter(vc)
	viewCenter = vc
end